import { BaseView, UIOrder } from "../../mvc/base_view";

export class EndView extends BaseView{
    constructor(){
        super();
        this.ui_package = "main";
        this.layout_name = "ui_end_view";
        this.order = UIOrder.MainUp;
    }

    OpenViewCallback(...args: any[]){
        let close_callback = args[0];
        this.GetGButton("back_btn").onClick(()=>{
            close_callback();
            this.Close();
        });
    }
}